package roborally.util;

import be.kuleuven.cs.som.annotate.*;
/**
 * This is an unchecked Exception that is thrown when clients try to use a program with a
 * wrong formatting.
 * 
 * @version 3.0
 * @author 	Bart Opsomer 2de Bachelor Ingenieurswetenschappen Electrotechniek-Computerwetenschappen 
 * 		   	Peter Opsomer 1ste Master Wiskundige IngenieursTechnieken
 */
public class WrongProgramFormatException extends RuntimeException{
	// The message of this exception
	private String message;
	/**
	 *Make an unchecked Exception that is thrown when clients use a Program with a wrong format.
	 */
	public WrongProgramFormatException() {
		
	}
	/**
	 *Make an unchecked Exception that is thrown when clients use a Program with a wrong format, with a given message.
	 */
	public WrongProgramFormatException(String message) {
		this.message = message;
	}
	/**
	 * @return	the message of this exception
	 */
	@Override @Basic
	public String getMessage() {
		return message;
	}
	@Model
	private static final long serialVersionUID = 2L;
}
